//
//  ScroContentView.h
//  DanaKreditLoan
//
//  Created by ZhengChengFeng on 2024/10/20.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class ScroContentView;

@protocol ScrollContentViewDelegate <NSObject>

@optional

- (void)contentViewDidScroll:(ScroContentView *)contentView fromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex progress:(float)progress;

- (void)contentViewDidEndDecelerating:(ScroContentView *)contentView startIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex;

@end


@interface ScroContentView : UIView

- (void)reloadViewWithChildVcs:(NSArray<UIViewController *> *)childVcs parentVC:(UIViewController *)parentVC;

@property (nonatomic, weak) id<ScrollContentViewDelegate> delegate;

@property (nonatomic, assign) NSInteger currentIndex;

@end

NS_ASSUME_NONNULL_END
